package com.example.campuslink.commen.enums

enum class TopicEnum(val label: String) {
    VIDEO("视频"),
    LEARNING("学习"),
    READING("读书"),
    CLUB("社团"),
    PHOTOGRAPHY("摄影"),
    PAINTING("绘画"),
    ANIME("动漫"),
    DRESSING("穿搭"),
    DANCE("舞蹈"),
    FITNESS("健身运动"),
    GAME("游戏"),
    MUSIC("音乐"),
    SECOND_HAND("二手交易"),
    OTHER("其他");

    companion object {
        fun fromLabel(label: String): TopicEnum? =
            values().find { it.label == label }

        fun getAllLabels(): List<String> = values().map { it.label }
    }
}